﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectFund.aspx.cs" Inherits="Thksoft.Module.DataDetail.ProjectFund" %>

<!DOCTYPE html>
<html class="L_UI">
<head id="Head1" runat="server">
    <title>项目资金明细</title>
    <link href="/UserCotrols/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css" />
    <script src="/UserCotrols/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<script src="../../Scripts/jquery-1.7.min.js" type="text/javascript"></script>
<script type="text/javascript">

    function showbd2(id) {
        if (id == undefined || id == 0) {
            return;
        }
        var option = {};
        option.Url = "/BusinessExpansion/Process/Business_Details.aspx?N_business_id=" + id;
        option.Area = ['800px', '570px'],
        //option.Scrollbar = true;
        option.Title = "项目资金详情(" + id + ")";
        top.MessageBox.Load(option);
    }

    var app1 = {};
    //刷新前页面（前页面不许是通过layer插件交互的）
    app1.YanZheng_Jin_E = function (obj) {
        var reg = /^[-]?\d+[.]?\d*$/;
        var va = $(obj).val();
        if (!reg.test(va)) {
            alert("【温馨提示】输入格式不对！");
            $(obj).focus();
        }
    }
</script>
<body class="bgcss">
    <form id="form1" runat="server">
        <asp:HiddenField ID="HiddenField3" runat="server" />
        <div class="Window" style="min-width: 900px;">
            <div class="Header" style="height: 89px;">
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="table">
                    <tr>
                        <td style="width: 7%; text-align: right; padding-right: 5px;">公&nbsp;&nbsp;&nbsp;&nbsp;司：
                        </td>
                        <td style="text-align: left; padding-left: 10px; width: 15%;">
                            <uc2:CtrlCompany runat="server" ID="ddlCom" />
                        </td>
                        <td style="width: 7%; text-align: right; padding-right: 5px;">项目类型：
                        </td>
                        <td style="width: 18%; text-align: left; padding-left: 10px;">
                            <asp:DropDownList ID="ddlCheckType" runat="server" Width="235px" CssClass="lblName">
                                <%--<asp:ListItem Value="-1" Selected="True">-------请选择-------</asp:ListItem>--%>
                                <asp:ListItem Value="T1">主营业务收入明细表</asp:ListItem>
                                <asp:ListItem Value="T2">天然气购入明细表</asp:ListItem>
                                <asp:ListItem Value="T3">安装外包费用明细表</asp:ListItem>
                                <asp:ListItem Value="T4">材料费用明细表</asp:ListItem>
                                <asp:ListItem Value="T5">大修费用明细表</asp:ListItem>
                                <asp:ListItem Value="T6">城市管网项目明细表</asp:ListItem>
                            </asp:DropDownList>
                            <span style="color: Red;">*</span>
                        </td>
                        <td style="width: 7%; text-align: right; padding-right: 5px;">业务日期：
                        </td>
                        <td class="righttd"><%-- style="width: 18%;"--%>
                            <asp:TextBox ID="year" runat="server" Width="60px" Text="" onkeydown="return NoNumber()" onkeyup='app1.YanZheng_Jin_E(this);'></asp:TextBox>
                            年
                        <asp:DropDownList ID="month" runat="server">
                            <asp:ListItem Selected="True" Value="-1">请选择</asp:ListItem>
                            <asp:ListItem Value="1">1 </asp:ListItem>
                            <asp:ListItem Value="2">2 </asp:ListItem>
                            <asp:ListItem Value="3">3 </asp:ListItem>
                            <asp:ListItem Value="4">4 </asp:ListItem>
                            <asp:ListItem Value="5">5 </asp:ListItem>
                            <asp:ListItem Value="6">6 </asp:ListItem>
                            <asp:ListItem Value="7">7 </asp:ListItem>
                            <asp:ListItem Value="8">8 </asp:ListItem>
                            <asp:ListItem Value="9">9 </asp:ListItem>
                            <asp:ListItem Value="10">10</asp:ListItem>
                            <asp:ListItem Value="11">11</asp:ListItem>
                            <asp:ListItem Value="12">12</asp:ListItem>
                        </asp:DropDownList>
                            月
                        <asp:DropDownList ID="week" runat="server">
                            <asp:ListItem Selected="True" Value="-1">请选择</asp:ListItem>
                            <asp:ListItem Value="1">1 </asp:ListItem>
                            <asp:ListItem Value="2">2 </asp:ListItem>
                            <asp:ListItem Value="3">3 </asp:ListItem>
                            <asp:ListItem Value="4">4 </asp:ListItem>
                            <asp:ListItem Value="5">5 </asp:ListItem>
                        </asp:DropDownList>
                            周 <span style="color: Red;">*</span>
                        </td>
                        <%--<td style="width: 7%; text-align: right; padding-right: 5px;">
                        项目名称：
                    </td>
                    <td colspan="6" style="text-align: left; padding-left: 5px;">
                        <asp:TextBox ID="txtProjectName" runat="server" Width="200px" CssClass="lblName"
                            Text=""></asp:TextBox>
                    </td>--%>
                    </tr>
                    <tr>
                        <td align="center" colspan="6">
                            <asp:Button ID="btnSelect" runat="server" Text="查询" CssClass="bt_css_s" OnClick="btnSelect_Click" />&nbsp;
                        <asp:Button ID="btnPrint" runat="server" Text="导出" CssClass="bt_css_s" OnClick="btnPrint_Click" />&nbsp;
                        </td>
                    </tr>
                </table>
            </div>
            <div class="Content" style="top: 70px; overflow-y: auto;">
                <asp:ScriptManager ID="ScriptManagers" runat="server" EnablePageMethods="True" EnableScriptGlobalization="True"
                    EnableScriptLocalization="True">
                </asp:ScriptManager>
                <asp:Panel ID="Panel1" runat="server">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="grvShow1" runat="server" AutoGenerateColumns="False" CssClass="cont_list"
                                Width="100%" OnRowDataBound="grvShow_RowDataBound" EmptyDataText="没有查找到您要的数据"
                                AllowSorting="True" OnSorting="grvShow1_Sorting" Visible="true">
                                <Columns>
                                    <asp:BoundField DataField="C_INDEX" HeaderText="序号" SortExpression="C_INDEX" ItemStyle-Width="2%" />
                                    <asp:BoundField DataField="C_NAME" HeaderText="项目名称" SortExpression="C_NAME" ItemStyle-Width="20%" />
                                    <asp:BoundField DataField="SaleNumber" HeaderText="销售量" SortExpression="SaleNumber" ItemStyle-Width="8%" />
                                    <asp:BoundField DataField="UnitePrice" HeaderText="单价" SortExpression="UnitePrice" ItemStyle-Width="8%" />
                                    <asp:BoundField DataField="SumPrice" HeaderText="金额" SortExpression="SumPrice" ItemStyle-Width="8%" />
                                    <asp:BoundField DataField="Flow" HeaderText="银行现金流向" SortExpression="Flow" ItemStyle-Width="10%" />
                                    <asp:BoundField DataField="Remark" HeaderText="备注" SortExpression="Remark" />
                                    <asp:BoundField DataField="ParentIndex" HeaderText="上一级序号" SortExpression="ParentIndex" ItemStyle-Width="5%" />
                                </Columns>
                            </asp:GridView>
                            <asp:GridView ID="grvShow2" runat="server" AutoGenerateColumns="False" CssClass="cont_list"
                                Width="100%" OnRowDataBound="grvShow_RowDataBound" EmptyDataText="没有查找到您要的数据"
                                AllowSorting="True" OnSorting="grvShow1_Sorting" Visible="false">
                                <Columns>
                                    <asp:BoundField DataField="C_VALUE1" HeaderText="单位名称" SortExpression="C_VALUE1" ItemStyle-Width="15%" />
                                    <asp:BoundField DataField="C_VALUE2" HeaderText="用户类别" SortExpression="C_VALUE2" ItemStyle-Width="20%" />
                                    <asp:BoundField DataField="C_VALUE3" HeaderText="预计用气量" SortExpression="C_VALUE3" ItemStyle-Width="8%" />
                                    <asp:BoundField DataField="C_VALUE4" HeaderText="单价" SortExpression="C_VALUE4" ItemStyle-Width="8%" />
                                    <asp:BoundField DataField="C_VALUE5" HeaderText="预计气款金额" SortExpression="C_VALUE5" ItemStyle-Width="8%" />
                                    <asp:BoundField DataField="C_VALUE6" HeaderText="银行现金流向" SortExpression="C_VALUE6" ItemStyle-Width="10%" />
                                    <asp:BoundField DataField="C_VALUE7" HeaderText="备注" SortExpression="C_VALUE7" />
                                </Columns>
                            </asp:GridView>
                            <asp:GridView ID="grvShow3" runat="server" AutoGenerateColumns="False" CssClass="cont_list"
                                Width="100%" OnRowDataBound="grvShow_RowDataBound" EmptyDataText="没有查找到您要的数据"
                                AllowSorting="True" OnSorting="grvShow1_Sorting" Visible="false">
                                <Columns>
                                    <asp:BoundField DataField="C_VALUE1" HeaderText="序号" SortExpression="C_VALUE1" ItemStyle-Width="2%" />
                                    <asp:BoundField DataField="C_VALUE2" HeaderText="单位名称" SortExpression="C_VALUE2" ItemStyle-Width="15%" />
                                    <asp:BoundField DataField="C_VALUE3" HeaderText="款项类别" SortExpression="C_VALUE3" ItemStyle-Width="17%" />
                                    <asp:BoundField DataField="C_VALUE5" HeaderText="款项用途" SortExpression="C_VALUE5" ItemStyle-Width="10%" />
                                    <asp:BoundField DataField="C_VALUE6" HeaderText="挂账金额（不含质保金）" SortExpression="C_VALUE6" ItemStyle-Width="7%" />
                                    <asp:BoundField DataField="C_VALUE7" HeaderText="质保金" SortExpression="C_VALUE7" ItemStyle-Width="7%" />
                                    <%--<asp:BoundField DataField="C_VALUE8" HeaderText="上月止累计支付金额" SortExpression="C_VALUE8" ItemStyle-Width="7%" />--%>
                                    <asp:BoundField DataField="C_VALUE9" HeaderText="本月上报资金计划" SortExpression="C_VALUE9" ItemStyle-Width="7%" />
                                    <%--<asp:BoundField DataField="C_VALUE10" HeaderText="各单位审批金额" SortExpression="C_VALUE10" ItemStyle-Width="7%" />--%>
                                    <%--<asp:BoundField DataField="C_VALUE11" HeaderText="总部资金审批金额" SortExpression="C_VALUE11" ItemStyle-Width="7%" />--%>
                                    <asp:BoundField DataField="C_VALUE12" HeaderText="银行现金流向" SortExpression="C_VALUE12" ItemStyle-Width="10%" />
                                    <asp:BoundField DataField="C_VALUE13" HeaderText="备注" SortExpression="C_VALUE13" />
                                </Columns>
                            </asp:GridView>
                            <asp:GridView ID="grvShow6" runat="server" AutoGenerateColumns="False" CssClass="cont_list"
                                Width="100%" OnRowDataBound="grvShow_RowDataBound" EmptyDataText="没有查找到您要的数据"
                                AllowSorting="True" OnSorting="grvShow1_Sorting" Visible="false">
                                <Columns>
                                    <asp:BoundField DataField="C_VALUE1" HeaderText="序号" SortExpression="C_VALUE1" ItemStyle-Width="2%" />
                                    <asp:BoundField DataField="C_VALUE2" HeaderText="单位名称" SortExpression="C_VALUE2" ItemStyle-Width="15%" />
                                    <asp:BoundField DataField="C_VALUE3" HeaderText="款项类别" SortExpression="C_VALUE3" ItemStyle-Width="15%" />
                                    <asp:BoundField DataField="C_VALUE4" HeaderText="项目名称" SortExpression="C_VALUE4" ItemStyle-Width="15%" />
                                    <asp:BoundField DataField="C_VALUE5" HeaderText="款项用途" SortExpression="C_VALUE5" ItemStyle-Width="10%" />
                                    <asp:BoundField DataField="C_VALUE6" HeaderText="挂账金额（不含质保金）" SortExpression="C_VALUE6" ItemStyle-Width="7%" />
                                    <asp:BoundField DataField="C_VALUE7" HeaderText="质保金" SortExpression="C_VALUE7" ItemStyle-Width="7%" />
                                    <%--<asp:BoundField DataField="C_VALUE8" HeaderText="上月止累计支付金额" SortExpression="C_VALUE8" ItemStyle-Width="7%" />--%>
                                    <asp:BoundField DataField="C_VALUE9" HeaderText="本月上报资金计划" SortExpression="C_VALUE9" ItemStyle-Width="7%" />
                                    <%--<asp:BoundField DataField="C_VALUE10" HeaderText="各单位审批金额" SortExpression="C_VALUE10" ItemStyle-Width="7%" />--%>
                                    <%--<asp:BoundField DataField="C_VALUE11" HeaderText="总部资金审批金额" SortExpression="C_VALUE11" ItemStyle-Width="7%" />--%>
                                    <asp:BoundField DataField="C_VALUE12" HeaderText="银行现金流向" SortExpression="C_VALUE12" ItemStyle-Width="10%" />
                                    <asp:BoundField DataField="C_VALUE13" HeaderText="备注" SortExpression="C_VALUE13" />
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </asp:Panel>
            </div>
        </div>
    </form>
</body>
</html>